! Configuration File for keepalived

global_defs {
   router_id {{name}}_haproxy
}

vrrp_script check_haproxy {      
   script "/etc/keepalived/check_haproxy.sh"
   interval 1
}

vrrp_instance haproxy {
    state {{NAME}}
    interface ens33
    virtual_router_id 88 
    priority {{number}}
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass redhat
    }
    virtual_ipaddress {
        192.168.2.100
    }
    track_script {   
       check_haproxy
    }
}
